-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PL-6 Generalize the Search API fields #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As suggested on the ticket, this should include two modules: The new module should include a suggestion that it's recommended to use in tandem with Search API Mapped Field (search_api_mapped_field)
and Search API Mapped Terms (search_api_mapped_terms)
. These will eventually go into a new repo entitled Search API Mapped (search_api_mapped)
(not sure about this name).search_api_federated_solr
.
@Kbentham please move the submodule to the new repo, https://github.com/palantirnet/search_api_field_map and ignore the above about splitting fields and terms. Just keep it all together.
@@ -0,0 +1,13 @@ | |||
langcode: en |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't directly related to the fields implementation so it should stay in search_api_federated_solr
.
I think https://github.com/palantirnet/search_api_field_map should be added as a dependency to this module. |
@@ -4,13 +4,13 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kbentham Why isn't this file removed? Isn't https://github.com/palantirnet/search_api_field_map/blob/master/src/Plugin/search_api/processor/MappedFields.php the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the same I have removed the file.
@Kbentham in testing I noticed that some of the fields (title, image) aren't getting rendered on the page here. It looks like https://github.com/palantirnet/search_api_federated_solr/blob/master/search_api_federated_solr.module#L76 needs to be updated with the new field names. That should... i think... still stay in this module though, as it's necessary for the react things, but not necessarily other uses cases. Current data in solr (on this PR):
Desired data (from #40)
|
@froboy I fixed the issues you found. |
@Kbentham I generalized that statement, and it should work for other fields if they exist now. Thanks for your work, this looks good now. |
https://palantir.atlassian.net/browse/PL-6
This module splits out the Search API Fields into a new module search_api_field_map. Can be tested using the demo site we have set up. See PL-6-generalize-search-api-fields for more information.